/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ivanbiz.quiz;

import com.ivanbiz.generic.GenericDAOImpl;
import java.util.List;
import org.hibernate.Query;

/**
 *
 * @author User
 */ 
public class TitleQuizDAOImpl extends GenericDAOImpl implements TitleQuizDAO{

    public List getTitleQuizByKelas(long idKelas) throws Exception {
        Query query = getSessionFactory().getCurrentSession().createQuery("from TitleQuiz a where a.kelas.id=:id");
        query.setParameter("id", idKelas);
        return query.list();
    }
   
}
